package com.house.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.house.dao.StreetDao;
import com.house.pojo.Street;
import com.house.service.StreetService;


@Transactional/*事务提交*/
@Service
public class StreetServiceImpl implements StreetService {
	
	
	@Autowired
	private StreetDao streetDao;
	

	@Override
	public List<Street> selectAllStreet() {
		// TODO Auto-generated method stub
		return streetDao.selectAllStreet();
	}

	@Override
	public Street selectStreetno(String sName) {
		// TODO Auto-generated method stub
		return streetDao.selectStreetno(sName);
	}

	@Override
	public List<Street> selectStreet(int s_countyno) {
		// TODO Auto-generated method stub
		return streetDao.selectStreet(s_countyno);
	}

	@Override
	public Street selectStreetName(int streetno) {
		// TODO Auto-generated method stub
		return streetDao.selectStreetName(streetno);
	}

}
